package com.example.java.designpattern.strategy;

import com.example.java.designpattern.Divisor;

public class StrategyContext {

    private Divisor strategy;

    public void setStrategy(Divisor strategy) {
        this.strategy = strategy;
    }

    public void algorithm(String s){
        strategy.divide(s);
    }
}
